package vip.ipav.spring.cloud.service;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 公共接口模块，服务提供方和消费者多继承，可以减少重复代码编写
 */
public interface HelloService {

    @GetMapping("hello")
    String hello(@RequestParam("p1") String p1, @RequestParam("p2") String p2);

    @PostMapping("post")
    String post();
}
